package project.menu.mainmenu;

import controllers.IAutoservice;
import project.menu.IMenu;
import project.menu.IMenuItem;
import project.work.Navigator;

public class WorkerWithOrder implements IMenuItem {

	private String name = "WorkWithOrder";
	private final Integer id = 3;
	private static IMenu submenu;
	private Navigator n;
	
	public WorkerWithOrder(){
		n=Navigator.getInstance();
	}

	
	public void action(IAutoservice aut) {
		n.drawMenu(submenu);
		
	}
	
	public static void setMenu(IMenu menu){
		submenu=menu;
	}
	
	public String getNameItem() {
		return name;
	}
	
	public Integer getId(){
		return id;
	}
	
	
}

